package io.github.uicdb.et;

import io.github.uicdb.et.entity.DefenseOrbEntity;
import io.github.uicdb.et.entity.ShadowDefenseOrbEntity;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;

public class ModEntityType {
    private static final DeferredRegister<EntityType<?>> REGISTER = DeferredRegister.create(BuiltInRegistries.ENTITY_TYPE, ElementalTheory.MODID);
    public final static DeferredHolder<EntityType<?>,EntityType<DefenseOrbEntity>> DEFENSE_ORB = REGISTER.register("defense_orb",()->EntityType.Builder.<DefenseOrbEntity>of(
                DefenseOrbEntity::new, MobCategory.MISC
    ).sized(0.5F, 0.5F).clientTrackingRange(6).updateInterval(20).build("defense_orb"));
    public final static DeferredHolder<EntityType<?>,EntityType<ShadowDefenseOrbEntity>> DEFENSE_ORB_SHADOW = REGISTER.register("defense_orb_shadow",()->EntityType.Builder.<ShadowDefenseOrbEntity>of(
            ShadowDefenseOrbEntity::new, MobCategory.MISC
    ).sized(0.5F, 0.5F).clientTrackingRange(6).updateInterval(20).build("defense_orb_shadow"));
    public static void init(IEventBus modEventBus) {
        REGISTER.register(modEventBus);
    }
}
